package com.example.drcbackend.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class ForeignKeyInfo {
    @TableId(type = IdType.AUTO)
    private String columnName;
    private String referencedTableName;
    private String referencedColumnName;

    public ForeignKeyInfo(String columnName, String referencedTableName, String referencedColumnName) {
        this.columnName = columnName;
        this.referencedTableName = referencedTableName;
        this.referencedColumnName = referencedColumnName;
    }
}
